/************************************************************************
                        StudentCourse.h.cpp - Copyright asaf

**************************************************************************/

#include "StudentCourse.h"

// Constructors/Destructors
//  

StudentCourse::StudentCourse (Person &p,CourseLectTimeSemeter &c,bool comp)
:m_StudentRef(p),m_CltsRef(c),m_Complete(comp){;}
		
StudentCourse::StudentCourse(const StudentCourse &s)
:m_StudentRef(s.m_StudentRef),m_CltsRef(s.m_CltsRef),m_Complete(s.m_Complete){
}


bool StudentCourse::operator==(const Person &rhs){return(m_StudentRef==rhs);}
bool StudentCourse::operator==(const Course &rhs){return(m_CltsRef.getCourseRef()==rhs);}
bool StudentCourse::operator==(const StudentCourse &rhs){return((m_CltsRef.getCourseRef()==rhs.m_CltsRef.getCourseRef())&&(m_StudentRef==rhs.m_StudentRef));}

StudentCourse::~StudentCourse ( ) {;}

//  
// Methods
void StudentCourse::setComplete ( bool new_var ) {
	m_Complete = new_var;
}

bool StudentCourse::getComplete ( ) {
	return m_Complete;
}

Person & StudentCourse::getStudentRef(){return m_StudentRef;}
CourseLectTimeSemeter & StudentCourse::getCltsRef(){return m_CltsRef;}